package io.renren.modules.substation.entity;

import java.util.List;

public class PartialDischargeInfo {


    public static final String TEMPERATURE = "温度";
    public static final String HUMIDITY = "湿度";
    public static final String INFRAREDINFO = "红外热像";
    public static final String PICTURESINFO = "可见光图片";
    public static final String NOISEINFO = "噪声";
    public static final String PDINFO = "局放";

    public static final String PURPOSE_IRIMG = "irImg"; //红外热图
    public static final String PURPOSE_IROVIMG = "irOvImg"; //// 红外融合图
    public static final String PURPOSE_CAMIMG = "cameraImg"; //可见光图片
    public static final String PURPOSE_CAMSOBELIMG = "cameraSobelImg"; //可见光轮廓图
    public static final String PURPOSE_CAMIDIMG = "camIdImg"; //可见光异物入侵检测标记图
    public static final String PURPOSE_JFPRPDIMG = "jfPrpdImg";//局放PRPD
    public static final String PURPOSE_JFPRPSIMG = "jfPrpsImg";//局放PRPS图

    //局放
    private String pdInfo;
    private String infraredInfo;
    private String picturesInfo;
    private String noiseInfo;
    private String temperatureAndHumidityInfo;

    private String pdInfoPic1;
    private String pdInfoPic2;
    private String infraredInfoPic1;
    private String infraredInfoPic2;
    private String infraredInfoPic3;
    private String picturesInfoPic1;
    private String picturesInfoPic2;
    private String picturesInfoPic3;


    //报表图片，无头
    private String pdInfoPRPSPic;
    private String pdInfoPRPDPic;
    private String infraredInfoPic;
    private String picturesInfoPic;
    private String noiseInfoPic;


    //报表内容

    private String pdInfoMaxValue;
    private String pdInfoStatusDesc;
    private String infraredInfoMaxValue;
    private String infraredInfoStatusDesc;
    private String picturesInfoValue;
    private String picturesInfoStatusDesc;
    private String noiseInfoValue;
    private String noiseInfoStatusDesc;

    private String pdInfoStatus;
    private String infraredInfoStatus;
    private String picturesInfoStatus;
    private String noiseInfoStatus;


    private String temperature;
    private String humidityInfo;


    private List<TBusiDevMonitorInfoEntity> dtlList;

    public String getPdInfo() {
        return pdInfo;
    }

    public void setPdInfo(String pdInfo) {
        this.pdInfo = pdInfo;
    }

    public String getInfraredInfo() {
        return infraredInfo;
    }

    public void setInfraredInfo(String infraredInfo) {
        this.infraredInfo = infraredInfo;
    }

    public String getPicturesInfo() {
        return picturesInfo;
    }

    public void setPicturesInfo(String picturesInfo) {
        this.picturesInfo = picturesInfo;
    }

    public String getNoiseInfo() {
        return noiseInfo;
    }

    public void setNoiseInfo(String noiseInfo) {
        this.noiseInfo = noiseInfo;
    }

    public String getTemperatureAndHumidityInfo() {
        return temperatureAndHumidityInfo;
    }

    public String getPdInfoPic1() {
        return pdInfoPic1;
    }

    public void setPdInfoPic1(String pdInfoPic1) {
        this.pdInfoPic1 = pdInfoPic1;
    }

    public String getPdInfoPic2() {
        return pdInfoPic2;
    }

    public void setPdInfoPic2(String pdInfoPic2) {
        this.pdInfoPic2 = pdInfoPic2;
    }

    public String getInfraredInfoPic3() {
        return infraredInfoPic3;
    }

    public void setInfraredInfoPic3(String infraredInfoPic3) {
        this.infraredInfoPic3 = infraredInfoPic3;
    }

    public String getInfraredInfoPic1() {
        return infraredInfoPic1;
    }

    public void setInfraredInfoPic1(String infraredInfoPic1) {
        this.infraredInfoPic1 = infraredInfoPic1;
    }

    public String getInfraredInfoPic2() {
        return infraredInfoPic2;
    }

    public void setInfraredInfoPic2(String infraredInfoPic2) {
        this.infraredInfoPic2 = infraredInfoPic2;
    }

    public String getPicturesInfoPic1() {
        return picturesInfoPic1;
    }

    public void setPicturesInfoPic1(String picturesInfoPic1) {
        this.picturesInfoPic1 = picturesInfoPic1;
    }

    public void setTemperatureAndHumidityInfo(String temperatureAndHumidityInfo) {
        this.temperatureAndHumidityInfo = temperatureAndHumidityInfo;
    }

    public String getPicturesInfoPic2() {
        return picturesInfoPic2;
    }

    public void setPicturesInfoPic2(String picturesInfoPic2) {
        this.picturesInfoPic2 = picturesInfoPic2;
    }

    public String getPicturesInfoPic3() {
        return picturesInfoPic3;
    }

    public void setPicturesInfoPic3(String picturesInfoPic3) {
        this.picturesInfoPic3 = picturesInfoPic3;
    }

    public List<TBusiDevMonitorInfoEntity> getDtlList() {
        return dtlList;
    }

    public void setDtlList(List<TBusiDevMonitorInfoEntity> dtlList) {
        this.dtlList = dtlList;
    }

    public void init() {

        temperatureAndHumidityInfo="";
        List<TBusiDevMonitorInfoEntity> dtl=getDtlList();
        for(TBusiDevMonitorInfoEntity m : dtl){
            if(m.getVariableDesc().contains(TEMPERATURE))
            {
                String msg = m.getVariableDesc() +":"+ m.getVariableValue()+"°c ";
                temperatureAndHumidityInfo +=msg;

            }else  if(m.getVariableDesc().contains(HUMIDITY))
            {
                String msg = m.getVariableDesc() +":"+ m.getVariableValue()+"%RH ";
                temperatureAndHumidityInfo +=msg;
            }
            else  if(m.getVariableDesc().contains(INFRAREDINFO))
            {
                infraredInfoStatus=m.getVariableStatus();
                if(m.getVariableStatus().equals("0"))
                {
                    infraredInfoStatusDesc ="正常";
                }
                else
                {
                    infraredInfoStatusDesc ="异常";
                }
                //红外状态 正常 最高温 ,最低温度
                infraredInfo= m.getVariableDesc()+ infraredInfoStatusDesc ;//+ " 温度:"+ m.getVariableValue()+"°c";

            }
            else  if(m.getVariableDesc().contains(PICTURESINFO))
            {
                picturesInfoStatus=m.getVariableStatus();
                if(m.getVariableStatus().equals("0"))
                {
                    picturesInfoStatusDesc ="正常";
                }
                else
                {
                    picturesInfoStatusDesc ="异常";
                }
                picturesInfo= m.getVariableDesc()+ picturesInfoStatusDesc ;
            }else  if(m.getVariableDesc().contains(NOISEINFO))
            {
                noiseInfoStatus=m.getVariableStatus();
                if(m.getVariableStatus().equals("0"))
                {
                    noiseInfoStatusDesc ="正常";
                }
                else
                {
                    noiseInfoStatusDesc ="异常";
                }
                noiseInfo= m.getVariableDesc()+ noiseInfoStatusDesc ;
            }
            else  if(m.getVariableDesc().contains(PDINFO))
            {
                pdInfoStatus=m.getVariableStatus();
                if(m.getVariableStatus().equals("0"))
                {
                    pdInfoStatusDesc ="正常";
                }
                else
                {
                    pdInfoStatusDesc ="异常";
                }
                pdInfo= m.getVariableDesc()+ pdInfoStatusDesc ;//+" 频次：" +m.getVariableValue2()+"次/秒 ";
            }
        }
    }


    public String getPdInfoMaxValue() {
        return pdInfoMaxValue;
    }

    public void setPdInfoMaxValue(String pdInfoMaxValue) {
        this.pdInfoMaxValue = pdInfoMaxValue;
    }

    public String getPdInfoStatusDesc() {
        return pdInfoStatusDesc;
    }

    public void setPdInfoStatusDesc(String pdInfoStatusDesc) {
        this.pdInfoStatusDesc = pdInfoStatusDesc;
    }

    public String getInfraredInfoMaxValue() {
        return infraredInfoMaxValue;
    }

    public void setInfraredInfoMaxValue(String infraredInfoMaxValue) {
        this.infraredInfoMaxValue = infraredInfoMaxValue;
    }

    public String getInfraredInfoStatusDesc() {
        return infraredInfoStatusDesc;
    }

    public void setInfraredInfoStatusDesc(String infraredInfoStatusDesc) {
        this.infraredInfoStatusDesc = infraredInfoStatusDesc;
    }

    public String getPicturesInfoValue() {
        return picturesInfoValue;
    }

    public void setPicturesInfoValue(String picturesInfoValue) {
        this.picturesInfoValue = picturesInfoValue;
    }

    public String getPicturesInfoStatusDesc() {
        return picturesInfoStatusDesc;
    }

    public void setPicturesInfoStatusDesc(String picturesInfoStatusDesc) {
        this.picturesInfoStatusDesc = picturesInfoStatusDesc;
    }

    public String getNoiseInfoValue() {
        return noiseInfoValue;
    }

    public void setNoiseInfoValue(String noiseInfoValue) {
        this.noiseInfoValue = noiseInfoValue;
    }

    public String getNoiseInfoStatusDesc() {
        return noiseInfoStatusDesc;
    }

    public void setNoiseInfoStatusDesc(String noiseInfoStatusDesc) {
        this.noiseInfoStatusDesc = noiseInfoStatusDesc;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public String getHumidityInfo() {
        return humidityInfo;
    }

    public void setHumidityInfo(String humidityInfo) {
        this.humidityInfo = humidityInfo;
    }

    public String getPdInfoStatus() {
        return pdInfoStatus;
    }

    public void setPdInfoStatus(String pdInfoStatus) {
        this.pdInfoStatus = pdInfoStatus;
    }

    public String getInfraredInfoStatus() {
        return infraredInfoStatus;
    }

    public void setInfraredInfoStatus(String infraredInfoStatus) {
        this.infraredInfoStatus = infraredInfoStatus;
    }

    public String getPicturesInfoStatus() {
        return picturesInfoStatus;
    }

    public void setPicturesInfoStatus(String picturesInfoStatus) {
        this.picturesInfoStatus = picturesInfoStatus;
    }

    public String getNoiseInfoStatus() {
        return noiseInfoStatus;
    }

    public void setNoiseInfoStatus(String noiseInfoStatus) {
        this.noiseInfoStatus = noiseInfoStatus;
    }

    public String getPdInfoPRPSPic() {
        return pdInfoPRPSPic;
    }

    public void setPdInfoPRPSPic(String pdInfoPRPSPic) {
        this.pdInfoPRPSPic = pdInfoPRPSPic;
    }

    public String getPdInfoPRPDPic() {
        return pdInfoPRPDPic;
    }

    public void setPdInfoPRPDPic(String pdInfoPRPDPic) {
        this.pdInfoPRPDPic = pdInfoPRPDPic;
    }

    public String getInfraredInfoPic() {
        return infraredInfoPic;
    }

    public void setInfraredInfoPic(String infraredInfoPic) {
        this.infraredInfoPic = infraredInfoPic;
    }

    public String getPicturesInfoPic() {
        return picturesInfoPic;
    }

    public void setPicturesInfoPic(String picturesInfoPic) {
        this.picturesInfoPic = picturesInfoPic;
    }

    public String getNoiseInfoPic() {
        return noiseInfoPic;
    }

    public void setNoiseInfoPic(String noiseInfoPic) {
        this.noiseInfoPic = noiseInfoPic;
    }
}
